<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


</head>
<body>

<h3>文件上传</h3>

<img style="width: 100px;height: 40px" th:src="${#servletContext.contextPath}+'/files/'+${session.dateFormat}+'/'+${session.newFileName}">

<!--单文件上传-->
<form th:action="@{/file/upload}" method="post" enctype="multipart/form-data">
    <input type="file" name="upload">

    <input type="submit" value="文件上传">
</form>


<h3>多文件上传</h3>
<form th:action="@{/file/uploadFiles}" method="post" enctype="multipart/form-data">
    <input type="file" name="myfiles">
    <input type="file" name="myfiles">
    <input type="submit" value="文件上传">
</form>


</body>
</html>